import axios from '@/libs/request/axios'
// 获取参数信息分页 add_by_gjq
export const getLabelList = (params) => {
    return axios.request({
        url: `/case/manualLabel/queryLabelList`,
        data: params,
        method: 'post'
    })
}
// 添加标签信息 add_by_gjq
export const addLabel = (params) => {
    return axios.request({
        url: '/case/manualLabel/addLabel',
        data:params,
        method: 'post'
    })
}
// 编辑标签信息 add_by_gjq
export const editLabel = (params) => {
    return axios.request({
        url: '/case/manualLabel/editLabel',
        data:params,
        method: 'post'
    })
}

// 删除标签信息 add_by_gjq
export const deleteLabel = (id, params) => {
    return axios.request({
        url: `/case/manualLabel/deleteLabel/${id}`,
        data:params,
        method: 'delete'
    })
}

// 获取所有数据信息 add_by_gjq
export const getAllLabelList = (params) => {
    return axios.request({
        url: `/case/manualLabel/queryAllLabelList`,
        data: params,
        method: 'post'
    })
}
// 获取所有手动数据信息 add_by_gjq
export const queryAllLabelListForManual = (params) => {
    return axios.request({
        url: `/case/manualLabel/queryAllLabelListForManual`,
        data: params,
        method: 'post'
    })
}
// 激活/失效规则 add_by_gjq
export const activateOrExpiredTheRules = (params,flag) => {
    return axios.request({
        url: `/case/manualLabel/activateOrExpiredTheRules/${flag}`,
        data: params,
        method: 'post'
    })
}
